aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/scope-prompt/[scopes]/+server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/scope-prompt/[scopes]/+server.ts')
-rw-r--r--src/routes/scope-prompt/[scopes]/+server.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/routes/scope-prompt/[scopes]/+server.ts b/src/routes/scope-prompt/[scopes]/+server.ts
index f919b9c..5521cf5 100644
--- a/src/routes/scope-prompt/[scopes]/+server.ts
+++ b/src/routes/scope-prompt/[scopes]/+server.ts
@@ -17,5 +17,9 @@ export const GET = async (e) => {
)
)
throw redirect(303, base + '/scope-prompt/ok');
- else throw error(500, 'In server mode, this branch should be unreachable');
+ else
+ throw error(
+ 500,
+ 'In server mode, this branch should be unreachable. checkScope with getScopeOnFail should never return false outside of the client.'
+ );
};